package com.v5ba.server.controller;

import com.v5ba.server.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 用户相关
 *
 * @author yiren
 */
@Controller
@RequestMapping("sys/user")
public class UserAboutController {


    @Autowired
    private IUserService userService;

    @RequestMapping("add")
    @ResponseBody
    public String register() {

        userService.add("张辉", "18611912657");
        return "ok";
    }


}